//
//  MCWithdrawTextUITableViewCell.m
//  TLYL
//
//  Created by MC on 2017/7/10.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCWithdrawTextUITableViewCell.h"

@interface MCWithdrawTextUITableViewCell()

@property (nonatomic,strong)UITextField * textField_Name;
@property (nonatomic,strong)UIView      * view_line;
@property (nonatomic,strong)UITextField * textField_Number;

@end

@implementation MCWithdrawTextUITableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        [self initView];
    }
    return self;
}

- (void)initView{
    
    self.backgroundColor=RGB(242, 242, 242);
    
    _textField_Name =[[UITextField alloc]init];
    _textField_Name.placeholder=@"请输入真实姓名";
    [self  addSubview:_textField_Name];
    
    
    _view_line=[[UIView alloc]init];
    [self addSubview:_view_line];
    _view_line.backgroundColor=RGB(100, 100, 100);
    
    
    _textField_Number =[[UITextField alloc]init];
    _textField_Number.placeholder=@"请输入资金密码";
    [self  addSubview:_textField_Number];
    
    [self relayOutConstraints];
}



-(void)relayOutConstraints{
    
    [_textField_Name mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self);
        make.left.equalTo(self.mas_left).offset(10);
        make.height.mas_equalTo(40);
        make.right.equalTo(self.mas_right).offset(-10);
    }];
    
    [_view_line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(40);
        make.left.right.equalTo(self);
        make.height.mas_equalTo(0.5);
    }];

    
    [_textField_Number mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_textField_Name.mas_bottom);
        make.left.equalTo(self.mas_left).offset(10);
        make.height.mas_equalTo(40);
        make.right.equalTo(self.mas_right).offset(-10);
    }];
    
}

-(void)setDataSource:(id)dataSource{
    
    _dataSource=dataSource;
   
    
}

+(CGFloat)computeHeight:(id)info{
    
    return 80;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
